#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<math.h>
int main() {
    double a = 0.0, b = 0.0, c = 0.0, dis = 0.0;
    while (~scanf("%lf %lf %lf", &a, &b, &c))
    {
        if (a == 0)
            printf("Not quadratic equation\n");
        else
        {
            dis = b * b - 4.0 * a * c;
            if (dis == 0.0)
            {
                printf("x1=x2=%.2lf\n", (-b / (2 * a)) + 0);
            }
            else if (dis > 0)
            {
                double y1 = ((int)(-b) - sqrt(dis)) / (2.0 * a);
                double y2 = ((int)(-b) + sqrt(dis)) / (2.0 * a);
                printf("x1=%.2f;x2=%.2f\n", y1, y2);
            }
            else {
                double x1 = (int)(-b) / (2.0 * a);
                double x2 = sqrt(-dis) / (2.0 * a);
                printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n", x1, x2, x1, x2);
            }
        }
    }
    return 0;
}
